package designMode.prototype;

/**
 * Created by jingqing.zhou on 2015/4/10.
 * 客户端
 */
public class Client {
   public static void main(String[] args){
       Prototype prototype1 = new ConcretePrototype("prototype");
       Prototype prototype2 = (Prototype)prototype1.clone();
       System.out.println(prototype1.getName());
       System.out.println(prototype2.getName());
   }
}
